CGIMAGELIB = -L/System/Library/Frameworks/ApplicationServices.framework -Wl,-framework,ApplicationServices
OpenCLLIB = -L/System/Library/Frameworks/OpenCL.framework -Wl,-framework,OpenCL

CFLAGS += -Wall -g -DUSE_OCL_SL

INCS = -I../../inc
LIBS = $(CGIMAGELIB) $(OpenCLLIB)
SRCS = $(wildcard *.cpp) ../../src/ocl.cpp
OBJS = $(patsubst %.cpp,%.o,$(SRCS))

all: $(OBJS)
	$(CXX) $(LIBS) $(OBJS)

%.o : %.cpp
	$(CXX) $(CFLAGS) $(INCS) -c $< -o $@

clean:
	-rm -f $(OBJS) a.out *.so target.png
